#pragma once

#include "D3D10.h"
#include "EnginePointer.h"
#include "VertexTypes.h"

class FinalRenderer
{
public:
	FinalRenderer(void);
	~FinalRenderer(void);

	HRESULT LoadGraphicsContent(EnginePointer<ID3D10Device>& pDevice, EnginePointer<ID3D10EffectPool>& pCommonPool);
    void UnloadGraphicsContent();
    HRESULT Render();
private:
	EnginePointer<ID3D10Device> pDevice;
	ID3D10Effect* pEffect;
	ID3D10InputLayout* pVertexLayout;
	ID3D10EffectTechnique* pTechnique;
	ID3D10Buffer* pVertexBuffer;
	ID3D10Buffer* pIndexBuffer;

	HMODULE contentModule;

	static PositionTexVertex vertices[4];
	static DWORD indices[6];
};
